<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Win32Service Service Control Message Accepted Bitmasks</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="win32service.constants.servicecontrol.html">« Win32Service Service Control Message Constants</a></li>
      <li style="float: right;"><a href="win32service.constants.servicestarttype.html">Win32Service Service Start Type Constants »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="win32service.constants.html">预定义常量</a></li>
    <li>Win32Service Service Control Message Accepted Bitmasks</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="win32service.constants.controlsaccepted" class="section">
  <table class="doctable table">
   <caption><strong>Win32Service Service Control Message Accepted Bitmasks</strong></caption>
   
    <thead>
     <tr>
      <th>Constant</th>
      <th>Value</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.win32-service-accept-hardwareprofilechange">
      <td><strong><code>WIN32_SERVICE_ACCEPT_HARDWAREPROFILECHANGE</code></strong></td>
      <td>0x00000020</td>
      <td>
        The service is notified when the computer&#039;s hardware profile has changed.
        This enables the system to send 
        <strong><code>WIN32_SERVICE_CONTROL_HARDWAREPROFILECHANGE</code></strong> 
        notifications to the service.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-netbindchange">
      <td><strong><code>WIN32_SERVICE_ACCEPT_NETBINDCHANGE</code></strong></td>
      <td>0x00000010</td>
      <td>
        The service is a network component that can accept changes in its 
        binding without being stopped and restarted.
        This control code allows the service to receive 
        <strong><code>WIN32_SERVICE_CONTROL_NETBINDADD</code></strong>, 
        <strong><code>WIN32_SERVICE_CONTROL_NETBINDREMOVE</code></strong>, 
        <strong><code>WIN32_SERVICE_CONTROL_NETBINDENABLE</code></strong>, and 
        <strong><code>WIN32_SERVICE_CONTROL_NETBINDDISABLE</code></strong> notifications.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-paramchange">
      <td><strong><code>WIN32_SERVICE_ACCEPT_PARAMCHANGE</code></strong></td>
      <td>0x00000008</td>
      <td>
        The service can reread its startup parameters without being stopped and restarted.
        This control code allows the service to receive 
        <strong><code>WIN32_SERVICE_CONTROL_PARAMCHANGE</code></strong> notifications.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-pause-continue">
      <td><strong><code>WIN32_SERVICE_ACCEPT_PAUSE_CONTINUE</code></strong></td>
      <td>0x00000002</td>
      <td>
       The service can be paused and continued. This control code allows the
       service to receive <strong><code>WIN32_SERVICE_CONTROL_PAUSE</code></strong> and
       <strong><code>WIN32_SERVICE_CONTROL_CONTINUE</code></strong> notifications.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-powerevent">
      <td><strong><code>WIN32_SERVICE_ACCEPT_POWEREVENT</code></strong></td>
      <td>0x00000040</td>
      <td>
        The service is notified when the computer&#039;s power status has changed.
        This enables the system to send 
        <strong><code>WIN32_SERVICE_CONTROL_POWEREVENT</code></strong> notifications 
        to the service.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-preshutdown">
      <td><strong><code>WIN32_SERVICE_ACCEPT_PRESHUTDOWN</code></strong></td>
      <td>0x00000100</td>
      <td>
       The service can perform preshutdown tasks. This control code enables the
       service to receive <strong><code>WIN32_SERVICE_CONTROL_PRESHUTDOWN</code></strong>
       notifications. This value is not supported by Windows Server 2003 and
       Windows XP/2000.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-sessionchange">
      <td><strong><code>WIN32_SERVICE_ACCEPT_SESSIONCHANGE</code></strong></td>
      <td>0x00000080</td>
      <td>
        The service is notified when the computer&#039;s session status has changed.
        This enables the system to send 
        <strong><code>WIN32_SERVICE_CONTROL_SESSIONCHANGE</code></strong> notifications 
        to the service.
        Windows 2000:  This value is not supported
      </td>
     </tr>

     <tr id="constant.win32-service-accept-shutdown">
      <td><strong><code>WIN32_SERVICE_ACCEPT_SHUTDOWN</code></strong></td>
      <td>0x00000004</td>
      <td>
       The service is notified when system shutdown occurs. This control code
       allows the service to receive <strong><code>WIN32_SERVICE_CONTROL_SHUTDOWN</code></strong>
       notifications.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-stop">
      <td><strong><code>WIN32_SERVICE_ACCEPT_STOP</code></strong></td>
      <td>0x00000001</td>
      <td>
       The service can be stopped. This control code allows the service to
       receive <strong><code>WIN32_SERVICE_CONTROL_STOP</code></strong> notifications.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-timechange">
      <td><strong><code>WIN32_SERVICE_ACCEPT_TIMECHANGE</code></strong></td>
      <td>0x00000200</td>
      <td>
        The service is notified when the system time has changed.
        This enables the system to send 
        <strong><code>WIN32_SERVICE_CONTROL_TIMECHANGE</code></strong> notifications to the service.
        Windows Server 2008, Windows Vista, Windows Server 2003, 
        and Windows XP/2000:  This control code is not supported.
      </td>
     </tr>

     <tr id="constant.win32-service-accept-triggerevent">
      <td><strong><code>WIN32_SERVICE_ACCEPT_TRIGGEREVENT</code></strong></td>
      <td>0x00000400</td>
      <td>
        The service is notified when an event for which the service has registered occurs.
        This enables the system to send 
        <strong><code>WIN32_SERVICE_CONTROL_TRIGGEREVENT</code></strong> notifications to the service.
        Windows Server 2008, Windows Vista, Windows Server 2003, 
        and Windows XP/2000:  This control code is not supported.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div></div></div></body></html>